const http = require('http');
const path = require('path');
//引入服务器
let staticServer = require('./02-staticservice')
//创建服务器
http.createServer((req,res) => {
    //静态服务
    staticServer(req,res,path.join(__dirname,'WWW'))
}).listen(8080,() => {
    console.log('running...');
})